package nciae.db.service;


import com.baomidou.mybatisplus.extension.service.IService;
import nciae.db.common.CommonResult;
import nciae.db.pojo.entity.Expert;
import nciae.db.pojo.entity.Student;
import nciae.db.pojo.entity.User;
import nciae.db.pojo.vo.QueryExportVO;

import java.util.List;
import java.util.Map;


public interface ExpertService extends IService<Expert> {
   public CommonResult<List<String>> listExpertName();

   public CommonResult<List<QueryExportVO>> getAllExperts();

   public Map<Integer, Integer> countStudentsPerExpert(List<Student> students);

   CommonResult<List<Expert>> search(Integer page, Integer limit, String name, String department, String title);

   CommonResult<Expert> expertSave(Expert expert);

   public Expert getExpertInfo(Integer expertId);

   CommonResult delete(Integer id);

   public void setUserInfo(User user);
}
